|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectobservations.DomainObject
observations.Unit
Unit Simple unit like 'Euros' or 'Dollars'.
| Constructor Summary | |
Unit(java.lang.String name)
Simply constructs a new unit object with name. |
|
| Method Summary | |
static Unit |
get(java.lang.String name)
Searches an unit in registry. |
Unit |
persist()
Saves a new unit. |
| Methods inherited from class observations.DomainObject |
getName |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Unit(java.lang.String name)
name - name of the unit (eg. 'feet')DomainObject.DomainObject(String)| Method Detail |
public static Unit get(java.lang.String name)
name - name of the searched unit
public Unit persist()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||